// Add sldl codes for NH districts using district names 

// source: Census Gazeteer, 2010 and 2014
// https://www.census.gov/geographies/reference-files/time-series/geo/gazetteer-files.2014.html#list-tab-264479560

// note: called in statelegislators.do


gen MN=subinstr(sldl, "-","",.) if sab=="MN"
replace MN="0"+MN if length(MN)==2

replace sldl="1" if MN=="01A" 
replace sldl="2" if MN=="01B" 
replace sldl="3" if MN=="02A" 
replace sldl="4" if MN=="02B" 
replace sldl="5" if MN=="03A" 
replace sldl="6" if MN=="03B" 
replace sldl="7" if MN=="04A" 
replace sldl="8" if MN=="04B" 
replace sldl="9" if MN=="05A" 
replace sldl="10" if MN=="05B" 
replace sldl="11" if MN=="06A" 
replace sldl="12" if MN=="06B" 
replace sldl="13" if MN=="07A" 
replace sldl="14" if MN=="07B" 
replace sldl="15" if MN=="08A" 
replace sldl="16" if MN=="08B" 
replace sldl="17" if MN=="09A" 
replace sldl="18" if MN=="09B" 
replace sldl="19" if MN=="10A" 
replace sldl="20" if MN=="10B" 
replace sldl="21" if MN=="11A" 
replace sldl="22" if MN=="11B" 
replace sldl="23" if MN=="12A" 
replace sldl="24" if MN=="12B" 
replace sldl="25" if MN=="13A" 
replace sldl="26" if MN=="13B" 
replace sldl="27" if MN=="14A" 
replace sldl="28" if MN=="14B" 
replace sldl="29" if MN=="15A" 
replace sldl="30" if MN=="15B" 
replace sldl="31" if MN=="16A" 
replace sldl="32" if MN=="16B" 
replace sldl="33" if MN=="17A" 
replace sldl="34" if MN=="17B" 
replace sldl="35" if MN=="18A" 
replace sldl="36" if MN=="18B" 
replace sldl="37" if MN=="19A" 
replace sldl="38" if MN=="19B" 
replace sldl="39" if MN=="20A" 
replace sldl="40" if MN=="20B" 
replace sldl="41" if MN=="21A" 
replace sldl="42" if MN=="21B" 
replace sldl="43" if MN=="22A" 
replace sldl="44" if MN=="22B" 
replace sldl="45" if MN=="23A" 
replace sldl="46" if MN=="23B" 
replace sldl="47" if MN=="24A" 
replace sldl="48" if MN=="24B" 
replace sldl="49" if MN=="25A" 
replace sldl="50" if MN=="25B" 
replace sldl="51" if MN=="26A" 
replace sldl="52" if MN=="26B" 
replace sldl="53" if MN=="27A" 
replace sldl="54" if MN=="27B" 
replace sldl="55" if MN=="28A" 
replace sldl="56" if MN=="28B" 
replace sldl="57" if MN=="29A" 
replace sldl="58" if MN=="29B" 
replace sldl="59" if MN=="30A" 
replace sldl="60" if MN=="30B" 
replace sldl="61" if MN=="31A" 
replace sldl="62" if MN=="31B" 
replace sldl="63" if MN=="32A" 
replace sldl="64" if MN=="32B" 
replace sldl="65" if MN=="33A" 
replace sldl="66" if MN=="33B" 
replace sldl="67" if MN=="34A" 
replace sldl="68" if MN=="34B" 
replace sldl="69" if MN=="35A" 
replace sldl="70" if MN=="35B" 
replace sldl="71" if MN=="36A" 
replace sldl="72" if MN=="36B" 
replace sldl="73" if MN=="37A" 
replace sldl="74" if MN=="37B" 
replace sldl="75" if MN=="38A" 
replace sldl="76" if MN=="38B" 
replace sldl="77" if MN=="39A" 
replace sldl="78" if MN=="39B" 
replace sldl="79" if MN=="40A" 
replace sldl="80" if MN=="40B" 
replace sldl="81" if MN=="41A" 
replace sldl="82" if MN=="41B" 
replace sldl="83" if MN=="42A" 
replace sldl="84" if MN=="42B" 
replace sldl="85" if MN=="43A" 
replace sldl="86" if MN=="43B" 
replace sldl="87" if MN=="44A" 
replace sldl="88" if MN=="44B" 
replace sldl="89" if MN=="45A" 
replace sldl="90" if MN=="45B" 
replace sldl="91" if MN=="46A" 
replace sldl="92" if MN=="46B" 
replace sldl="93" if MN=="47A" 
replace sldl="94" if MN=="47B" 
replace sldl="95" if MN=="48A" 
replace sldl="96" if MN=="48B" 
replace sldl="97" if MN=="49A" 
replace sldl="98" if MN=="49B" 
replace sldl="99" if MN=="50A" 
replace sldl="100" if MN=="50B" 
replace sldl="101" if MN=="51A" 
replace sldl="102" if MN=="51B" 
replace sldl="103" if MN=="52A" 
replace sldl="104" if MN=="52B" 
replace sldl="105" if MN=="53A" 
replace sldl="106" if MN=="53B" 
replace sldl="107" if MN=="54A" 
replace sldl="108" if MN=="54B" 
replace sldl="109" if MN=="55A" 
replace sldl="110" if MN=="55B" 
replace sldl="111" if MN=="56A" 
replace sldl="112" if MN=="56B" 
replace sldl="113" if MN=="57A" 
replace sldl="114" if MN=="57B" 
replace sldl="115" if MN=="58A" 
replace sldl="116" if MN=="58B" 
replace sldl="117" if MN=="59A" 
replace sldl="118" if MN=="59B" 
replace sldl="119" if MN=="60A" 
replace sldl="120" if MN=="60B" 
replace sldl="121" if MN=="61A" 
replace sldl="122" if MN=="61B" 
replace sldl="123" if MN=="62A" 
replace sldl="124" if MN=="62B" 
replace sldl="125" if MN=="63A" 
replace sldl="126" if MN=="63B" 
replace sldl="127" if MN=="64A" 
replace sldl="128" if MN=="64B" 
replace sldl="129" if MN=="65A" 
replace sldl="130" if MN=="65B" 
replace sldl="131" if MN=="66A" 
replace sldl="132" if MN=="66B" 
replace sldl="133" if MN=="67A" 
replace sldl="134" if MN=="67B" 

drop MN 
